package com.qf.smsplatform.pojo;



public class TAcountRecord implements CheckNull{

  private Long id;
  private String orderid;
  private Long clientId;
  private Long paidValue;
  private java.util.Date createTime;
  private java.util.Date payTime;
  private Long paymentId;
  private String paymentOrder;
  private String paymentInfo;


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }


  public String getOrderid() {
    return orderid;
  }

  public void setOrderid(String orderid) {
    this.orderid = orderid;
  }


  public Long getClientId() {
    return clientId;
  }

  public void setClientId(Long clientId) {
    this.clientId = clientId;
  }


  public Long getPaidValue() {
    return paidValue;
  }

  public void setPaidValue(Long paidValue) {
    this.paidValue = paidValue;
  }


  public java.util.Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(java.util.Date createTime) {
    this.createTime = createTime;
  }


  public java.util.Date getPayTime() {
    return payTime;
  }

  public void setPayTime(java.util.Date payTime) {
    this.payTime = payTime;
  }


  public Long getPaymentId() {
    return paymentId;
  }

  public void setPaymentId(Long paymentId) {
    this.paymentId = paymentId;
  }


  public String getPaymentOrder() {
    return paymentOrder;
  }

  public void setPaymentOrder(String paymentOrder) {
    this.paymentOrder = paymentOrder;
  }


  public String getPaymentInfo() {
    return paymentInfo;
  }

  public void setPaymentInfo(String paymentInfo) {
    this.paymentInfo = paymentInfo;
  }

  @Override
  public boolean isNull(CheckType type) {
    switch (type){
      case ADD:
        return getPaymentOrder().isEmpty()||getClientId()==null||getCreateTime()==null
                ||getOrderid().isEmpty()||getPaidValue()==null||getPaymentId()==null||
                getPaymentInfo().isEmpty()||getPayTime()==null;
      case UPDATE:
        return getPaymentOrder().isEmpty()||getClientId()==null||getCreateTime()==null
                ||getOrderid().isEmpty()||getPaidValue()==null||getPaymentId()==null||
                getPaymentInfo().isEmpty()||getPayTime()==null||getId()==null;
      case DELETE:
    }
    return false;
  }
}
